package cn.edu.scau.cmi.ema.dao;

import java.util.Set;

import org.springframework.dao.DataAccessException;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;

public interface SubjectDAO extends JpaDao<Subject> {

	public Subject findSubjectById(Integer id) throws DataAccessException;

	public Subject findSubjectById(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Subject> findSubjectByName(String name) throws DataAccessException;

	public Set<Subject> findSubjectByName(String name, int startResult, int maxRows) throws DataAccessException;

	public Set<Subject> findSubjectByNameContaining(String name_1) throws DataAccessException;

	public Set<Subject> findSubjectByNameContaining(String name_1, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Subject> findSubjectByDescription(String description) throws DataAccessException;

	public Set<Subject> findSubjectByDescription(String description, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Subject> findSubjectByDescriptionContaining(String description_1) throws DataAccessException;

	public Set<Subject> findSubjectByDescriptionContaining(String description_1, int startResult, int maxRows)
			throws DataAccessException;

	public Subject findSubjectByPrimaryKey(Integer id) throws DataAccessException;

	public Subject findSubjectByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Subject> findSubjectsByIds(Set<Integer> ids) throws DataAccessException;

	public Set<Subject> findAllSubjects() throws DataAccessException;

	public Set<Subject> findAllSubjects(int startResult, int maxRows) throws DataAccessException;

	public Set<Subject> findSubjectByCompositeProperities(String sql, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Subject> findSubjectsByDetachedCriteria(CmiPagination page) throws DataAccessException;

	public Subject findSubjectByPhysicalPrimaryKey(String name) throws DataAccessException;

	public Subject findSubjectByPhysicalPrimaryKey(String name, int startResult, int maxRows)
			throws DataAccessException;
}
